<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php include '../configure.php';?>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link type="text/css" rel="stylesheet" href="../css/all.css" />
<script type="text/javascript" src="../jquerylib/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="../jquerylib/jquery-ui-1.8.10.custom.min.js"></script>
<link type="text/css" rel="stylesheet" href="<?php echo $jqueryuitheme ?>" />
<title>Insert title here</title>
</head>
<body>
	
    <?php
		if (isset($_POST['create'])) echo $_POST["activate_sdate"];
	?>
	<form action="" method="post" id="activate_create">
		<input type="hidden" name="create" value="1" />
		<p>活动名：<input type="text" name="activate_name" id="input_activate_name" /></p>
		<p>
			活动时间：
			<input size="13" value="<?php echo date("Y年m月d日")?>" type="text" class="input_date" name="activate_sdate" id="input_activate_sdate" />
			<select name="activate_shour" id="select_activate_shour">
			<?php 
				for ($i=0;$i<24;$i++) {
					if ($i<10) echo "<option value='$i'>0$i 时</option>";
					else echo "<option value='$i'>$i 时</option>";
				}
			?>
			</select>
			<select name="activate_smin" id="select_activate_smin">
			<?php 
				for ($i=0;$i<60;$i+=10) {
					if ($i<10) echo "<option value='$i'>0$i 分</option>";
					else echo "<option value='$i'>$i 分</option>";
				}
			?>
			</select>
			-
			<input size="13" value="<?php echo date("Y年m月d日")?>" type="text" class="input_date" name="activate_edate" id="input_activate_edate" />
			<select name="activate_ehour" id="select_activate_ehour">
			<?php 
				for ($i=0;$i<24;$i++) {
					if ($i<10) echo "<option value='$i'>0$i 时</option>";
					else echo "<option value='$i'>$i 时</option>";
				}
			?>
			</select>
			<select name="activate_emin" id="select_activate_emin">
			<?php 
				for ($i=0;$i<60;$i+=10) {
					if ($i<10) echo "<option value='$i'>0$i 分</option>";
					else echo "<option value='$i'>$i 分</option>";
				}
			?>
			</select>
		</p>
		<p>
			活动类别：
			<select id="select_activate_type" name="select_activate_type">
				<option></option>
			</select>
		</p>
		<p>参与人数：<input type="text" name="activate_num" id="input_activate_num" /></p>
		<p>活动地点：<input type="text" name="activate_place" id="input_activate_place" /></p>
		<p><a class="button" id="submit_activate_create">提交</a></p>
	</form>
	<script type="text/javascript">
		$(document).ready(function() {
			$("#submit_activate_create").click(function() {
				$("#activate_create").submit();
			});
	
		});
		
		$(".input_date").datepicker({
			dateFormat: 'yy年mm月dd日',
			dayNamesMin: ['日', '一', '二', '三', '四', '五', '六'],
			monthNames: ['一月','二月','三月','四月','五月','六月','七月','八月','九月','十月','十一月','十二月']
		});
	</script>
</body>
</html>